<div [nbSpinner]="loading" nbSpinnerStatus="primary">
    <div *ngIf="!loading">
        <div *ngIf="errorMessage">
			<h1>{{ errorMessage }}</h1>
		</div>
        <div *ngIf="successMessage">
			<h1>{{ successMessage }}</h1>
		</div>
    </div>
</div>